package com.feicheng.house.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.feicheng.house.entity.Permission;

import java.time.LocalDateTime;
import java.util.List;

import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author feichengTech
 * @since 2021-10-30
 */

public class Permission implements Serializable {

	 private static final long serialVersionUID = 1L;
	    
	    @TableField(exist=false)
	    public List<Permission> permissions;

	    public List<Permission> getSubPermissions() {
			return permissions;
		}

		public void setSubPermissions(List<Permission> subPermissions) {
			this.permissions = subPermissions;
		}

	    public Integer getPermissionId() {
			return permissionId;
		}

		public void setPermissionId(Integer permissionId) {
			this.permissionId = permissionId;
		}

		public String getName() {
			return name;
		}

		public void setName(String name) {
			this.name = name;
		}

		public String getPath() {
			return path;
		}

		public void setPath(String path) {
			this.path = path;
		}

		public Boolean getStatu() {
			return statu;
		}

		public void setStatu(Boolean statu) {
			this.statu = statu;
		}

		public Integer getpId() {
			return pId;
		}

		public void setpId(Integer pId) {
			this.pId = pId;
		}

		public Integer getCu() {
			return cu;
		}

		public void setCu(Integer cu) {
			this.cu = cu;
		}

		public LocalDateTime getCt() {
			return ct;
		}

		public void setCt(LocalDateTime ct) {
			this.ct = ct;
		}

		public Integer getUu() {
			return uu;
		}

		public void setUu(Integer uu) {
			this.uu = uu;
		}

		public LocalDateTime getUt() {
			return ut;
		}

		public void setUt(LocalDateTime ut) {
			this.ut = ut;
		}

		public String getType() {
			return type;
		}

		public void setType(String type) {
			this.type = type;
		}

		@TableId(value = "permission_id", type = IdType.AUTO)
	    private Integer permissionId;

	    private String name;

	    private String path;

	    private Boolean statu;

	    private Integer pId;

	    private Integer cu;

	    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	    private LocalDateTime ct;

	    private Integer uu;

	    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	    private LocalDateTime ut;

	    private String type;


}
